home *** CD-ROM | disk | FTP | other *** search
/ Packard Bell - Multimedia…D & Packard Bell Library / Packard Bell Master CD.iso / diskimag / prodpack / disk1.img / STFSETUP.INF < prev    next >
INI File  |  1992-03-18  |  12KB  |  343 lines

  1. [UI Localizable Vars]
  2. ; name of the ini file. Shouldn't need to be internationalized.
  3. IniFileName = "setup.ini"
  4.  
  5. ; date if the ini file. Used to see whether or not we have run setup before
  6. IniFileDate = "1992-03-12"
  7.  
  8. ; All files which do not explicitly have their dates set in the file lists
  9. ; will use this date.
  10. SHIPDATE = "1992-03-12"
  11.  
  12. NoRoomText = "There is not enough room on your hard disk to install "+
  13.     "Microsoft Productivity Pack.  Please cancel Setup and remove files to make more room on your "+
  14.     "hard disk. "
  15.  
  16. ; Appears to the right of the file group sizes in custom dialog (e.g. 23K)
  17. Ksym = K
  18.  
  19. ; Bad path entered in the path dialog
  20. BadPath = "The location you have chosen to install Microsoft Productivity Pack in is "+
  21.     "invalid or not allowed.  Please check the drive and/or directory name."
  22.  
  23. ; Two bottom lines in the custom dialog. Do NOT modify the $(DISK_NEEDED)
  24. ; or the $(DISK_EXIST) strings. The are replaced at run time with the
  25. ; proper values
  26. DiskNeededLine = "Space Required: $(DISK_NEEDED)K."
  27. DiskExistLine = "Space Available: $(DISK_EXIST)K."
  28.  
  29. ; Title of setup error messages
  30. ErrorTitle = "Setup Message"
  31.  
  32. ; Help text and title for the cutom dialog. \n's force line feeds
  33. CustomHelpTitle = "Setup Help"
  34. CustomHelpText = "Setup is telling you that there is not enough room "+
  35.     "on your hard disk.\n\nPlease cancel Setup and remove other "+
  36.     "files from your hard disk, then run Setup again to do a "+
  37.     "complete installation.\n\nSee your Windows or DOS Documentation "+
  38.     "for information on how to remove files from your hard disk."
  39.  
  40. ; Help text and title for the path dialog. \n's force line feeds
  41. PathHelpTitle = "Help for Destination Path"
  42. PathHelpText = "Setup suggests you install Microsoft Productivity Pack in the "+
  43.     "$(DESTPATH) directory.\n\nTo change the location on your hard disk "+
  44.     "where Productivity Pack will be installed, type a drive letter "+
  45.     "(usually C), a colon (:), a backslash (\\), and then the name of "+
  46.     "the directory where you want to install Productivity Pack.  For "+
  47.     "example, type $(DESTPATH).\n\nIf you are unsure what to do, accept "+
  48.     "the suggested location of $(DESTPATH)."
  49.  
  50. ; Final dialog text
  51. FinishedText = "Microsoft Productivity Pack for Windows has been successfully installed!\n\n "+
  52.     "Choose Run Productivity Pack to start using the Productivity Pack tutorial now.  "+
  53.     "Choose Return to Windows to return to Windows without starting Productivity Pack.  "
  54.  
  55.  
  56. ; Message which comes up if we don't detect any hard disks on their system
  57. ; (so we cannot give a default path).
  58. HardDiskNotFound = "Cannot locate your hard disk.  Please choose the\n"+
  59.                 "OK button and then type the location, or cancel\n"+
  60.                 "Setup and check your computer's configuration."
  61.  
  62. ; What we set the default path string to in the previous case
  63. UNKNOWNPATH = "?"
  64.  
  65. ; Text of the path dialog
  66. DestinationText = "Setup installs files on your hard disk.  Choose the "+
  67.     "location where you want to install the Microsoft Productivity Pack "+
  68.     "files.\n\nTo change the suggested location, press the BACKSPACE "+
  69.     "key to delete characters, and then type the drive and directory "+
  70.     "where you want Microsoft Productivity Pack installed."
  71.  
  72. ; Cancel Setup dialog text
  73. ExitText = "Microsoft Productivity Pack may not be properly installed.   "+
  74.     "If you quit Setup now, you may have to run Setup again.\n\n"+
  75.     "Are you sure you want to cancel?  Choose Cancel Setup \n"+
  76.     "to cancel Setup, or choose Resume to return to the previous "+
  77.     "installation option."
  78.  
  79. ; Text of the dialog appearing while files are being copied
  80. DuringInstallText="Now would be a great time to fill out your "+
  81.     "registration card.  When you send it in, Microsoft will:\n\n"+
  82.     "  - Inform you of product updates.\n  - Offer you customer "+
  83.     "support.\n  - Provide you information about\n    related "+
  84.     "Microsoft products."
  85.  
  86. ; Default destination path for setup (drive letter is replaced with proper
  87. ; one
  88. DESTPATH = "C:\PRODPACK"
  89. DESTPATH2 = "C:\PROPAK31"
  90. LWINEXE = "lwin.exe"
  91.  
  92. ; Install failed because it either couldn't find files or couldn't write
  93. ; them to the destination
  94. InstallError1 = "Setup could not complete the installation.  \n\nPossibly "+
  95.     "the hard disk was full, there was a disk error in trying to "+
  96.     "update one of the files, or your Microsoft Productivity Pack disk is damaged."
  97.  
  98. ; SO little disk space that we couldn't even add to the win.ini or progman
  99. ; Also COULD be because disk error writing the above or to the winworks.exe
  100. InstallError3 = "Setup could not complete the installation.  Possibly "+
  101.     "the hard disk was full, or there was a disk error in trying to "+
  102.     "update one of the files."
  103.  
  104. ; Name of the progman group we create for Prod Pack
  105. ProgManGroup = "Productivity Pack 3.1"
  106.  
  107. ;  Title of Productivity Pack in the progman group
  108. GroupTitle = "Productivity Pack"
  109.  
  110. ; Filename of wpp.exe
  111. ProductExe = "prodpack.exe"
  112.  
  113. ; Setup title
  114. Setup_Title = "Microsoft Productivity Pack for Windows Setup"
  115.  
  116.  
  117. BadWindowPath = "Invalid Windows path in your AUTOEXEC.BAT file. "+
  118.         "It must contain a drive letter (c:\ for example)."
  119.  
  120. BadVersionWindows = "Productivity Pack requires Microsoft Windows version 3.1. "+
  121.         "Setup has detected that you are running a version of "+
  122.         "Windows other than 3.1."
  123. LWIN10Found = "Setup has detected the previous version of Productivity Pack on your machine.   Productivity Pack version 1.0 will not work properly in Windows version 3.1.\n\nYou might want to remove the previous version from your hard disk to save disk space. See your Windows Documentation or the Productivity Pack lessons"+
  124.     "for information on how to remove files from your hard disk."
  125.  
  126. ; # = Disk title, a file on the disk, name of directory if on network
  127. ; 1.2 Meg disk layout
  128. [Source Media Descriptions]
  129.     1 = "Microsoft Productivity Pack for Windows", TAGFILE = setup.exe, +
  130.         NETPATH = ""
  131.     2 = "Microsoft Productivity Pack Disk 2", TAGFILE = $, +
  132.         NETPATH = ""
  133.  
  134. [Program Files]
  135. EXE = 1,prodpack.ex$,RENAME=prodpack.exe,SIZE=84624
  136. 1,wpp1.lw$,RENAME=wpp1.lwn,SIZE=95072
  137. 1,wpp2.lw$,RENAME=wpp2.lwn,SIZE=111008
  138. 1,wpp3.lw$,RENAME=wpp3.lwn,SIZE=16160
  139. 1,wpp4.lw$,RENAME=wpp4.lwn,SIZE=22672
  140. 1,wpp5.lw$,RENAME=wpp5.lwn,SIZE=10016
  141. 1,wppcbt.ex$,RENAME=wppcbt.exe,SIZE=116272
  142. 1,wppcbt.le$,RENAME=wppcbt.les,SIZE=1261067
  143. 1,wpplib.dl$,RENAME=wpplib.dll,SIZE=97280
  144. 1,cbtlib3.dl$,RENAME=cbtlib3.dll,SIZE=16608
  145. 1,donato.tx$,RENAME=donato.txt,SIZE=700
  146. 1,invite.tx$,RENAME=invite.txt,SIZE=797
  147. 1,letter.tx$,RENAME=letter.txt,SIZE=547
  148. 1,markanty.tx$,RENAME=markanty.txt,SIZE=532
  149. 1,momlet.tx$,RENAME=momlet.txt,SIZE=738
  150. 1,mona.tx$,RENAME=mona.txt,SIZE=1440
  151. 1,question.tx$,RENAME=question.txt,SIZE=836
  152. 1,rchery.tx$,RENAME=rchery.txt,SIZE=450
  153. 1,speech.tx$,RENAME=speech.txt,SIZE=724
  154. 1,answers.cr$,RENAME=answers.crd,SIZE=712
  155. 1,address.cr$,RENAME=address.crd,SIZE=126
  156. 1,recruits.cr$,RENAME=recruits.crd,SIZE=1819
  157. 1,townfolk.cr$,RENAME=townfolk.crd,SIZE=2170
  158. 1,tbreport.tx$,RENAME=tbreport.txt,SIZE=1099
  159. 1,crimnals.cr$,RENAME=crimnals.crd,SIZE=674
  160. 1,tbnotes1.tx$,RENAME=tbnotes1.txt,SIZE=826
  161. 1,tbnotes2.tx$,RENAME=tbnotes2.txt,SIZE=940
  162. 1,tbnotes3.tx$,RENAME=tbnotes3.txt,SIZE=868
  163. 1,tbclues.tx$,RENAME=tbclues.txt,SIZE=353
  164. 1,crimes.cr$,RENAME=crimes.crd,SIZE=716
  165.  
  166.  
  167. [UI Temp Vars]
  168. ANYFILESEXIST = "FALSE"
  169. GROUPLIST = {"Program Files"}
  170.  
  171. [Shell Commands]
  172.     read-syms       "UI Localizable Vars"
  173.     read-syms       "UI Temp Vars"
  174.     set-title       $(Setup_Title)
  175.     set-subst       CustomHelpText = $(CustomHelpText)
  176.     set-subst       PathHelpText = $(PathHelpText)
  177.     set-subst       DestinationText = $(DestinationText)
  178.     set-subst       FinishedText = $(FinishedText)
  179.     set-subst       ExitText = $(ExitText)
  180.     set-subst       CompleteText = $(CompleteText)
  181.     set-subst       DuringInstallText = $(DuringInstallText)
  182.     set-subst       InsertDisk = $(InsertDisk)
  183.  
  184.     set fdbDoFileInstall = "YES"
  185.     set COPYCOMMDLG = "COPY"
  186.  
  187.     ui      start "InitStuff"
  188.     ui      start "FRunBefore"
  189.     set fRunBefore = $(ANSWER)
  190.  
  191.     ui      start "GetSystemDirectory"
  192.     ui      start "GetWindowsDirectory"
  193.     IfStr(I) $(ANSWER) == "NO"
  194.         set-subst szText = $(BadWindowPath)
  195.         ui      start "MessageBox"
  196.         goto "exit"
  197.     endif
  198.  
  199. welcome =  set from = welcome
  200.     ui      start "DetectWin31"
  201.     IfStr(I) $(ANSWER) == "NO"
  202.         set-subst szText = $(BadVersionWindows)
  203.         ui      start "MessageBox"
  204.         goto "exit"
  205.     endif
  206.     
  207.     ui      start   "Welcome"
  208.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  209.         ui  pop 1
  210.         goto "init"
  211.     else-ifstr(i) $(DLGEVENT) == "EXIT"
  212.         goto "quit"
  213.     else
  214.         install "Error - info"
  215.         goto error
  216.     endif
  217.  
  218. init =  Init-System     1, $(IniFileName)
  219.  
  220. path  = set from = path
  221.     ui  start "FixupDestPath" 
  222.     set ANSWER2 = $(ANSWER)
  223.     
  224.     set szParsePiece = $(DESTPATH)"\"$(LWINEXE)
  225.     ui      start   FExist
  226.     IfStr(I) $(ANSWER) == "YES"
  227.         set-subst szText = $(LWIN10Found)
  228.         ui      start "MessageBox"
  229.         set DESTPATH = $(DESTPATH2)
  230.         ui  start "FixupDestPath" 
  231.     endif
  232.     
  233.     IfStr(I) $(ANSWER2) == "NO"
  234.         set-subst szText = $(HardDiskNotFound)
  235.         ui      start "MessageBox"
  236.         set EditTextIn = $(UNKNOWNPATH)
  237.         set EditFocus = ALL               ; END | START | ALL
  238.     else
  239.         set EditTextIn = $(DESTPATH)
  240.         set EditFocus = END               ; END | START | ALL
  241.     endif
  242.     
  243.     set-subsym HelpText = $(PathHelpText)
  244.     set HelpTitle = $(PathHelpTitle)
  245.     ui        start   "Path"
  246.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  247.         ui  pop 1
  248.         set DESTPATH = $(EditTextOut)
  249.         ui      start   "StartWait"
  250.         ui      start   "DoFileLookups" 
  251.         ui      start   "EndWait"
  252. EnoughSpace=    ui      start   "FEnoughSpace"
  253.         ifstr(i) $(ANSWER) == "YES"
  254.             goto "installnow1"        
  255.         endif
  256.     else-ifstr(i) $(DLGEVENT) == "EXIT"
  257.         set DESTPATH = $(EditTextOut)
  258.         goto "quit"
  259.     else
  260.         install "Error - edit"
  261.         goto error
  262.     endif
  263.  
  264. sizedlg = set from = sizedlg
  265.     set HelpText = $(CustomHelpText)
  266.     set HelpTitle = $(CustomHelpTitle)
  267.     ui      start   "SizeError"
  268.     ui      pop     1
  269.     goto "exit"
  270.  
  271. quit  = ui      start  "Quit"
  272.     ifstr(i) $(DLGEVENT) == "RESUME"
  273.         ui  pop 1
  274.         goto $(from)
  275.     else
  276.         goto "exit"
  277.     endif
  278.  
  279. exit =  exit
  280.  
  281. error = write-symtab "shl-st2.new"
  282.     exit
  283.  
  284. installnow1 =   set-subst szText = $(DuringInstallText)
  285.  
  286.     ifstr(i) $(fdbDoFileInstall) != "YES"
  287.         goto exitdlg
  288.     endif
  289.     ui      start   "Modeless"
  290.  
  291.     install "Install-Files"
  292.     ifstr(I) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  293.         goto "exit"
  294.     endif
  295.     ifstr(I) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  296.         set-subst szText = $(InstallError1)
  297.         ui      start   "MessageBox"
  298.         goto "exit"
  299.     endif
  300.  
  301.     ui      pop     1
  302.  
  303.     ui      start   "StartWait"
  304.     install "Install-ProgMan"
  305.     ui      start   "EndWait"
  306.     ifstr(I) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  307.         set-subst szText = $(InstallError3)
  308.         ui      start   "MessageBox"
  309.         goto "exit"     
  310.     endif
  311.  
  312. exitdlg =       ui        start   "Exit"
  313.     ui  pop 1
  314.     ifstr(i) $(DLGEVENT) == "R"
  315.         set szPath = $(DESTPATH)
  316.         ui      start   "ChDriveDir"
  317.         set szFile = $(DESTPATH)"\"$(ProductExe)
  318.         ui      start   "RunExe"
  319.     endif
  320. exit
  321.  
  322. [Install-ProgMan]
  323. ;       Add extentions to ini
  324. CreateIniSection "WIN.INI", "Productivity Pack"
  325. CreateIniKeyValue "WIN.INI", "Productivity Pack", "Default Name", $(STF_CD_NAME), O
  326.  
  327. ;       Add group and files to group
  328. CreateProgManGroup      $(ProgManGroup), "" 
  329. ShowProgManGroup        $(ProgManGroup), "1" 
  330. CreateProgManItem       $(ProgManGroup), $(GroupTitle), $(DESTPATH)"\"$(ProductExe)
  331. Close-System "Program Files", "EXE", $(DESTPATH), "291", "191"
  332. endif
  333. exit
  334.  
  335. [Install-Files]
  336. set STF_DATE = $(SHIPDATE)
  337. set STF_OVERWRITE = OLDER
  338. AddSectionFilesToCopyList "Program Files", $(STF_SRCDIR), $(DESTPATH)
  339. CopyFilesInCopyList
  340. exit
  341.  
  342.  
  343.